﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using MusicOnLine.Common;
namespace MusicOnLine.Models
{
    public class AlbumUploadModel
    {
        [Required]
        public string AlbumName { get; set; }
        [Required]
        public string AlbumArtist { get; set; }

        public string Genre { get; set; }

       

        [DataType(DataType.Date)]
        public DateTime? PublishDate { get; set; }

        [RegularExpression("[0-9][0-9][0-9][0-9]")]
        public int? Year { get; set; }        

        [Required]
        [FileFormat("jpg,png")]
        public string AlbumTitle { get; set; }      
       
        public string TitleFile { get; set; }
        public IEnumerable<SingleSongModel> SongList { get; set; }
    }

    public class SingleSongModel
    {
        public string Name { get; set; }
        public string Artist { get; set; }
        public string Location { get; set; }
    }
}